package org.jakim.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="OTHERS")
public class AdditionaInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2842768300607603151L;

	@Id
	@GeneratedValue
	@Column(name="OTHER_ID")
	private Integer otherId;

	@ManyToOne
	@JoinColumn(name="PESRONAL_INFO_ID") 	
	private PersonalInforamation personalInfo;

	public AdditionaInfo(){
		
	}

	public PersonalInforamation getPersonalInfo() {
		return personalInfo;
	}

	public void setPersonalInfo(PersonalInforamation personalInfo) {
		this.personalInfo = personalInfo;
	}

	public Integer getOtherId() {
		return otherId;
	}
	
}
